﻿using Halcon二次开发.Controller.数据加载与保存;
using Halcon二次开发.Controller.结果分析工具;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace Halcon二次开发.View.结果分析工具
{
    public partial class AnalyseResultForms : Form
    {
        public AnalyseControl controller=null;
        public AnalyseResultForms()
        {
            InitializeComponent();
            controller= new AnalyseControl(this);   
        }
        /// <summary>
        /// 反射调用的方法，请不要修改
        /// </summary>
        /// <param name="path">Json文件的路径</param>
        /// <param name="addres">节点</param>
        public void SetJsonPaths(string path, string addres)
        {
            string paths = path + "\\" + "界面数据\\" + addres + "\\" + addres + "数据.json";
            //调用存储方法
            new LoadData().LoadDatas(paths, this);
        }

        private void AnalyseResultForms_FormClosing(object sender, FormClosingEventArgs e)
        {
            this.Hide();
            e.Cancel = true;
        }
        //分析工具
        private void button1_Click(object sender, EventArgs e)
        {
            controller.Run();
        }
    }
}
